package com.atguigu.gmall.list;

import com.atguigu.gmall.list.service.GoodsService;
import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.vo.GoodsSearchResultVo;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class SearchGoods {
    @Autowired
    GoodsService goodsService;
    @Test
    void searchTest(){
        SearchParam searchParam = new SearchParam();
        searchParam.setCategory1Id(2L);
        searchParam.setCategory2Id(13L);
        searchParam.setCategory3Id(61L);
        searchParam.setTrademark("4:小米");
        searchParam.setKeyword("手机");
        String[] props = {"4:64GB:机身存储"};
        searchParam.setProps(props);
        searchParam.setOrder("2:desc");
        searchParam.setPageNo(1);




    }
}
